import spinRoute from '@/router/spinRoute';

export default [
    { path: '/', redirect: '/org/list' },
    {
        path: '/org/list',
        component: spinRoute('org/orgList'),
        meta: { title: '组织列表' },
        children: [
            {
                path: '/org/add',
                component: spinRoute('org/orgAdd'),
                meta: {
                    title: '新增组织',
                    breadParents: [
                        '/org/list'
                    ]
                },
            },
            {
                path: '/org/edit',
                component: spinRoute('org/orgEdit'),
                meta: {
                    title: '编辑组织',
                    breadParents: [
                        '/org/list'
                    ]
                },
            },
            {
                path: '/org/view',
                component: spinRoute('org/orgView'),
                meta: {
                    title: '查看组织',
                    breadParents: [
                        '/org/list'
                    ]
                },
            },
            {
                path: '/org/import',
                component: spinRoute('org/orgImport'),
                meta: {
                    title: '数据导入',
                    breadParents: [
                        '/org/list'
                    ]
                }
            }
        ]
    },
    {
        path: '/org/department',
        component: spinRoute('org/department/department'),
        meta: {
            title: '内设机构',
            breadParents: [
                '/org/list'
            ]
        }
    },
    {
        path: '/org/fields',
        component: spinRoute('org/fieldsSet'),
        meta: { title: '字段设置' },
    },

    {
        path: '/org/config',
        component: spinRoute('org/_config'),
        meta: { title: '设置' },
    },
    {
        path: '/org/textConfig',
        component: spinRoute('org/_textConfig'),
        meta: { title: '文案配置' },
    },
    {
        path: '/org/fieldsCur',
        component: spinRoute('org/fieldsSetCur'),
        meta: { title: '字段设置' },
    },
]
